package com.aaa.service;

import com.aaa.entity.Goods;
import com.aaa.util.BusinessException;

import java.util.Map;

public interface GoodsService {

    int addGoods(Goods goods);

    Map<String,Object> getConsumerGoodList(Integer pageNumber, Integer pageSize, String searchId, String searchName)throws Exception;


    int consumerGoods(Integer goodsId, Integer code) throws  Exception;


    /**
     * 商品销售里的商品列表
     * @param pageNumber
     * @param pageSize
     * @param searchId
     * @param searchName
     * @return
     * @throws Exception
     */
    Map<String,Object> consumerGoodList(Integer pageNumber, Integer pageSize, String searchId, String searchName) throws BusinessException;
}
